package com.DHH.Entity.Base;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类BaseRole
 * 数据表base_tb_role
 * 角色表
 * 2017-8-3 12:33:07
 * @author Administrator
 *
 */
@Table(name = "base_tb_role")
public class BaseRole  implements Serializable {

	//
	@Id
	@GeneratedValue(generator = "JDBC")
	private Integer id;
	//角色名称
	@Length(max = 8, min = 0, message = "角色名称长度为0-8个字符")
	private String roleName;
	//标示
	@Length(max = 6, min = 0, message = "标示长度为0-6个字符")
	private String roleMark;
	//是否为默认角色
	private Integer isDefault;
	//
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//
	private Integer disabled;


	public BaseRole(){

	}

	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setRoleName(String roleName){
		this.roleName=roleName;
	}

	public String getRoleName(){
		return this.roleName;
	}
	public void setRoleMark(String roleMark){
		this.roleMark=roleMark;
	}

	public String getRoleMark(){
		return this.roleMark;
	}
	public void setIsDefault(Integer isDefault){
		this.isDefault=isDefault;
	}

	public Integer getIsDefault(){
		return this.isDefault;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}

	public Date getCreateTime(){
		return this.createTime;
	}
	public void setDisabled(Integer disabled){
		this.disabled=disabled;
	}

	public Integer getDisabled(){
		return this.disabled;
	}

	@Override
	public String toString() {
		return "BaseRole{" +
				"id=" + id +
				", roleName='" + roleName + '\'' +
				", roleMark='" + roleMark + '\'' +
				", isDefault=" + isDefault +
				", createTime=" + createTime +
				", disabled=" + disabled +
				'}';
	}
}
